package org.dtrd.modules.service.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.service.entity.po.DtrdRlServicePackage;

/**
 * <p>
 * 服务包和服务套餐的关系
 * </p>
 *
 * @author QR
 * @since 2021-11-19 18:52:54
 */
@Getter
@Setter
@ApiModel(value = "服务包与服务套餐关系数据对象")
public class ServicePackageRelationInfo {

    @ApiModelProperty("服务套餐id")
    private Integer serviceId;

    @ApiModelProperty("服务次数")
    private Integer serviceCount;

    @ApiModelProperty("服务周期")
    private String servicePeriod;


    public ServicePackageRelationInfo parseFromPo(DtrdRlServicePackage po) {
        serviceId = po.getServiceId();
        serviceCount = po.getServiceCount();
        servicePeriod = po.getServiceMonth();
        return this;
    }


}
